package com.bnyy.message.bean.chat;

import com.bnyy.message.enums.ChatType;

import org.xutils.db.annotation.Table;

/**
 * Author : 关炳鹏
 * Description :
 * Date : 2022/12/7
 **/
@Table(name = "chat_stranger")
public class StrangerChat extends Chat {

    public StrangerChat() {
    }

    public StrangerChat(int loginUserId, ChatMessage chatMessage) {
        super(loginUserId, chatMessage);

        setChatId(loginUserId + "_" + chatMessage.getSenderId());
        setType(ChatType.PRIVATE_CHAT.getType());
    }

    @Override
    public boolean isStrangerChat() {
        return true;
    }
}
